<template>
  <div>
    <!-- -->
      <img v-if="img" :src="img" alt="">
  </div>
</template>

<script>
import {mapState,mapActions} from 'vuex'
export default { 
  name: '2304BIndex',

  data() {
    return {
      
    };
  },
  created(){
    this.actImg();//触发actions 的方法
  },
  computed:{
    ...mapState(['img']) //设计公共数据
  },
  mounted() {
    
  },

  methods: {  
      ...mapActions(["actImg"])
     
  },
};
</script>